package scene.map 
{
	/**
	 * ...
	 * @author carlor
	 */
	public class MapData 
	{
		private var _mapId    : int;
		private var _mapName  : String;
		private var _mapWidth : int;
		private var _mapHeight: int;
		
		public function MapData(data: Object) 
		{
			if (data) {
				this._mapId     = data.mapId;
				this._mapName   = data.mapName;
				this._mapWidth  = data.mapWidth;
				this._mapHeight = data.mapHeight;
			}else {
				this._mapId     = 0;
				this._mapName   = "";
				this._mapWidth  = 0;
				this._mapHeight = 0;
			}
		}
		
		public function dispose(): void
		{
			
		}
		
		public function get mapId(): int
		{
			return this._mapId;
		}
		
		public function set mapId(value: int): void
		{
			this._mapId = value;
		}
		
		public function get mapName(): String
		{
			return this._mapName;
		}
		
		public function set mapName(value: String): void
		{
			this._mapName = value;
		}
		
		public function get mapWidth(): int
		{
			return this._mapWidth;
		}
		
		public function set mapWidth(value: int): void
		{
			this._mapWidth = value;
		}
		
		public function get mapHeight(): int
		{
			return this._mapHeight;
		}
		
		public function set mapHeight(value: int): void
		{
			this._mapHeight = value;
		}
	}

}